<?php
global $base_dir;
$base_dir='./';

/**** 模块调用*****/
include_once($base_dir."inc/inc_connect.php");		//通用函数包含文件
$act = '';
if (isset($_GET['act'])) {
  $act = $_GET['act'];
}
if($act == "logout")
{
	unset($_SESSION['admin_user']);
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理系统</title>
<link href="style/common.css" rel="stylesheet" type="text/css" />

<script src="js/checkform.js" type="text/javascript"></script>
</head>
<body>
<form id="form1" name="form1" method="post" action="login_check.php" onsubmit="return checkform();">
<table width="300" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#EBEBF3" style="margin-top:100px">
  <tr>
    <td width="7"><img src="images/t01_l_7_21.jpg" width="7" height="22" /></td>
    <td background="images/t01_c.jpg" class="style1">&nbsp;<strong>管理员登录</strong></td>
    <td width="7"><img src="images/t01_r_7_21.jpg" width="7" height="22" /></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td height="150"><table width="90%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="14%" height="30">&nbsp;</td>
        <td width="86%" height="30">用户名：
          <input name="admin_username" type="text" class="input_w120" id="admin_username" maxlength="20" char="用户名" bt="1"/></td>
      </tr>
      <tr>
        <td height="30">&nbsp;</td>
        <td height="30">密　码：
          <input name="admin_pwd" type="password" class="input_w120" id="admin_pwd" maxlength="20" char="密码" bt="1"/></td>
      </tr>
      <tr>
        <td height="30">&nbsp;</td>
        <td height="30">验证码：
          <input name="checkcode" type="text" class="input_w40" id="checkcode" maxlength="4" char="验证码" bt="1"/>
          <img src="common/verifycode.php?action=verifycode" width="50" height="20" /></td>
      </tr>
      <tr>
        <td height="30">&nbsp;</td>
        <td height="30" align="center"><input type="submit" name="Submit" value="登录" />
          &nbsp;
          <input type="reset" name="Submit2" value="重置" /></td>
      </tr>
    </table></td>
    <td>&nbsp;</td>
  </tr>
</table>
</form>
<!-- 7caihu.com Baidu tongji analytics -->
<script type="text/javascript">
var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");

document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3Fb8797ecb21d1ccb839c35b190277a0cd' type='text/javascript'%3E%3C/script%3E"));

</script>
</body>
</html>
